<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../org/angular.min.js"></script>
</head>
<body>

<div ng-app="hd" ng-controller="ctrl">

    <!--货币过滤器-->
    {{price | currency}} <br/>
    {{price | currency:'￥'}} <br/>
    {{price | currency:'￥': 1}} <br/>
    {{price | currency:'￥': 1}}
    <hr>

    <!--字数字过滤器-->
    {{price | number:2}}
    <hr>


    <!--字符串大小写转换过滤器-->
    {{name|lowercase}}<br/>
    {{name|uppercase}}<br/>
    {{name|uppercase|lowercase}}
    <hr>


    <!--字符串截过滤器-->
    {{data}} <br>
    {{data|limitTo:3}} <br/>
    {{data|limitTo:3:3}} <hr>

    <!--日期过滤器-->
    {{time}} <br/>
    {{time|date:'yyyy年MM月dd日 HH时mm分ss秒'}}



</div>


<script>
    var m = angular.module('hd', []);
    m.controller('ctrl', ['$scope', function ($scope) {

        $scope.price = 123.2652;
        $scope.name = 'HouDunWang';
        $scope.data = '孙琳是大法官给双方各撒的发给他任何';

        $scope.time = new Date().getTime();

           }]);
</script>


</body>
</html>

